I want to get the string which resides between the strings "cow" and "milk"
My cow always gives milk
would return
"always gives"
cow(.*)milk
Search a string for "w3Schools", and display the position of the match: